import java.util.Scanner;

public class Java026 {
    public static void main(String[] args) {
        String s = new Scanner(System.in).nextLine();
        judgment(s);
    }
    public static void judgment(String s){
        if(s.charAt(0)=='m'||s.charAt(0)=='M'){
            System.out.println("周一");//Monday
        }else if (s.charAt(0)=='t'||s.charAt(0)=='T'){
            if(s.charAt(1)=='u'||(s.charAt(1)=='U')){
                System.out.println("周二");//Tuesday
            }else {
                System.out.println("周四");//
            }//Thursday
        }else if (s.charAt(0)=='t'||s.charAt(0)=='T'){
            System.out.println("周三");// Wednesday

        }else if (s.charAt(0)=='f'||s.charAt(0)=='F'){
            System.out.println("周五");//Friday
        }else if (s.charAt(0)=='s'||s.charAt(0)=='S'){
            if(s.charAt(1)=='a'||s.charAt(1)=='A'){
                System.out.println("周六");//Saturday
            }else {
                System.out.println("周天");//Sunday
            }
        }
}}
